package cn.edu.sptc.sms_luojie.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.annotation.Nullable;
import jakarta.validation.constraints.Null;
import jdk.jfr.DataAmount;
import lombok.Data;

import java.util.Date;
@Data
@Schema(description = "专业实体类（请求体/响应共同体）")
//对应数据库中的专业表（t_major）

public class Major {
    @Schema(description = "专业ID，自动新增",example = "1")
    @Nullable
    private Long id;
    @Schema(description = "专业名称",example = "软件技术",required = true)
    private String name;
    @Schema(description = "创建时间，系统自动创建，不需要添加",hidden = true)
    @Nullable
    private Date createTime;
    @Schema(description = "更新时间，系统自动添加，不需要添加",hidden = true)
    @Nullable
    private Date updateTime;

}
